package com.fa4j.system.account.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 账号日志
 */
@Data
@Schema(description = "账号日志")
public class AccountLogCreateRequest {

    @Schema(description = "应用类型")
    private String appType;

    @Schema(description = "账号ID")
    private Long accountId;

    @Schema(description = "模块名称")
    private String moduleName;

    @Schema(description = "资源名称")
    private String resourceName;

    @Schema(description = "资源方法")
    private String resourceMethod;

    @Schema(description = "资源路径")
    private String resourcePath;

    @Schema(description = "客户端UA")
    private String clientUserAgent;

    @Schema(description = "客户端IP")
    private String clientIp;

    @Schema(description = "是否成功")
    private Boolean success;

    @Schema(description = "请求参数")
    private String params;

    @Schema(description = "响应结果")
    private String result;

    @Schema(description = "开始时间")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    private LocalDateTime endTime;

    @Schema(description = "操作人ID")
    private Long operatorId;
}
